<?
error_reporting(E_ERROR | E_WARNING | E_PARSE);
$this->layout='blank.php';

$obres = new obres;
$obres->loadXml();
$obres->loadXmlTypes();
$r = $obres->toARdata();

header("Cache-Control: no-cache, must-revalidate");
header("Content-type: application/json");
echo json_encode($r);
?>